home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 1-4 / Prograph Reference 1-4.rsrc / TEXT_144.txt < prev    next >
Encoding:
Text File  |  1995-10-21  |  3.9 KB  |  179 lines

  1.  
  2. Value Window*99*
  3.  
  4. This movable modal window allows examination or editing of values. The Edit, Find and Info menus are available to the user. 
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Banner*99*
  20.  
  21. The banner of the window contains a title depending on the origin of the window, as follows:
  22.  
  23. o If the window displays the value of a persistent (or attribute) called <name>, the title is Value of Persistent <name>.
  24.  
  25. o If the window displays the value of the nth item of a list, the title reads Value of List Item n.
  26.  
  27. o If the window is opened by execution of accept or display operations that have a prompt-string input, the title is the prompt string.*99*
  28.  
  29. o Otherwise, the title is Value.
  30.  
  31. Window Regions*99*
  32.  
  33. A Value window has three regions: 
  34.  
  35. o scroll list of types
  36.  
  37. o value panel
  38.  
  39. o buttons *99*
  40.  
  41. Opening*100*
  42.  
  43. A Value window is opened:
  44.  
  45. o when a double-click occurs on a persistent, Persistent operation, attribute, Get operation, or Set operation; on an element of a list displayed in graphic mode, or, at runtime in step mode, on an executed root or terminal;
  46.  
  47. o when a Shift-Option-Command-click occurs on a window or window item while in the Window editor;
  48.  
  49. o during runtime creation of attributes and persistents;
  50.  
  51. o during execution of the accept or display primitives.
  52.  
  53. Modes*100*
  54.  
  55. Values can be displayed in either standard or graphic mode.
  56.  
  57. Standard Mode*100*
  58.  
  59. In this mode, the value is displayed either as text or as a sequence of inverted triangles (attribute icons), depending on the type of data.
  60.  
  61. o A value of the simple data types boolean, integer, none, null, real, and string is displayed as text.*100*
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. o    An instance of a class is displayed as a sequence of attribute icons. *100*
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. o    A value of the simple type list can be displayed in standard mode if it does not contain any class instances (at any level). The standard mode of display of a list is textual.  *101*
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94. Graphic Mode*101*
  95.  
  96. In graphic mode, a value is displayed either as a picture or as a sequence of inverted triangles, depending on the type of data.
  97.  
  98. o A list is displayed as inverted triangles. If the list contains instances, graphic mode is the only possible mode of display.*101*
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. o Instances of system classes are displayed as windows, dialogs or menus (see chapter 5, ‚ÄúSystem Classes‚Äù).*101*
  114.  
  115. o Instances of certain Macintosh types are appropriately displayed.
  116.  
  117. Editing*101*
  118.  
  119. When the display is textual, the standard Macintosh text editor applies. In a graphic display of a list, an element can be deleted by deleting a triangle; an element can be added by clicking in space; and the value of an element can be edited by double-clicking on a triangle to open a Value window. If an instance is displayed in standard mode, double-clicking an attribute icon opens a Value window for editing. 
  120.  
  121. Effects of Buttons*102*
  122.  
  123. OK*102*
  124.  
  125. Clicking this button closes the window, saving changes. Option-clicking OK is equivalent to clicking OK on all Value windows on the screen.  
  126.  
  127. Cancel*102*
  128.  
  129. Clicking this button closes the window without saving changes. Option-clicking Cancel is equivalent to clicking Cancel on all Value windows on the screen.  
  130.  
  131. Graphic*102*
  132.  
  133. Clicking this button causes a list, Macintosh structure, or system-class instance to be displayed in graphic mode.
  134.  
  135. Types*102*
  136.  
  137. The scrolling list displays all types. Changing the selected type displays a default value for the new type in the value panel. If the type list is gray, no type change can be made.*102* 
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. The Text Window*102*
  149.  
  150. A Text window contains any text that can be saved to a Macintosh text file. 
  151.  
  152. Opening*102*
  153.  
  154. A Text window is opened when New Text‚Ķ or Open Text‚Ķ is selected from the File menu. 
  155.  
  156. Naming*102*
  157.  
  158. If the window corresponds to a text file, the title is the same as the file name. 
  159.  
  160. Editing in the Text Window*103*
  161.  
  162. All standard Macintosh text editing operations apply in Text windows.  
  163.  
  164. Effects of Context Switching*103*
  165.  
  166. Text windows are displayed both while editing and while executing.
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.